#include<stdio.h>

int removeDuplicates(int* nums, int numsSize) {
	int cur = 0;
	int next = 1;
	int  dst = 0;
	while (next < numsSize)
	{
		if (nums[cur] != nums[next])
		{
			nums[dst++] = nums[cur];
			cur = next;
			next++;
		}
		else
		{
			next++;
		}
	}
	if (cur < numsSize)
	{
		nums[dst++] = nums[cur++];
	}
	return dst;
}

int main() 
{
	return 0;
}